/**
 * @param {number[]} nums
 * @param {number[][]} queries
 * @return {number[]}
 */
 var minDifference = function(nums, queries) {
    const ret = []
    const getAbs = (x,y) {
        const arr = nums.slice(x,y)
        for(let i = x; i<=y; i++){

        }
    }
    for(let [x,y] of queries){
        ret.push(getAbs(x,y))
    }
};